package com.sloth.service.impl;

import com.sloth.mapper.FlowMapper;
import com.sloth.pojo.Flow;
import com.sloth.service.FlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lai
 * @time 2021/10/19 10:48
 */
@Service
public class FlowServiceImpl implements FlowService {

    @Autowired
    private FlowMapper flowMapper;


    // 向数据库中添加流水信息
    @Override
    public Integer saveFlow(Flow flow) {
        int rows = flowMapper.insert(flow);
        return rows;
    }
}